home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 09 - 1993 / 09.07 Jul 93 / Embedded Software / LowMemDataAndCode.a < prev    next >
Encoding:
Text File  |  1992-11-09  |  2.0 KB  |  88 lines  |  [TEXT/MPS ]

  1.     TITLE 'LowMemDataAndCode'
  2.     BLANKS OFF
  3.     PRINT OFF
  4.     MACHINE  MC68000        ;pick 68000 target
  5.     CODEREFS FORCEPC            
  6.     DATAREFS RELATIVE            
  7.  
  8. InitialStackPointer          EQU  $00093f3e   ;initial A7 value
  9.  
  10. ;
  11. ; Here is the 256-vector exception table for the system.
  12. ;
  13. VectTable     MAIN    
  14.               ORG  0000     
  15. LowMemVect
  16.  
  17. InitialSSP        DC.L    InitialStackPointer
  18. InitialPC        DC.L    $00000400  ; ORG 1024, start of EKGmain.c
  19. BusError        DC.L    256   ; jump to ExProc below
  20. AddrError        DC.L    256
  21. IllegalInstruct DC.L    256
  22. ZeroDivide        DC.L    256
  23. CHKInstruct        DC.L    256
  24. TRAPVInstruct    DC.L    256
  25. PrivViolate        DC.L    256
  26. Trace            DC.L    256
  27. Line1010Emu        DC.L    256
  28. Line1111Emu        DC.L    256
  29. Reserved12        DC.L    256
  30. Reserved13        DC.L    256
  31. FormatError        DC.L    256        ; only for 68010/12
  32. UninitINTVector DC.L    256
  33. Reserved16        DC.L    256
  34. Reserved17        DC.L    256
  35. Reserved18        DC.L    256
  36. Reserved19        DC.L    256
  37. Reserved20        DC.L    256
  38. Reserved21        DC.L    256
  39. Reserved22        DC.L    256
  40. Reserved23        DC.L    256
  41. SpuriousINT        DC.L    256  ;taken when bus error during INT processing
  42. Lvl1AutoVector    DC.L    256
  43. Lvl2AutoVector    DC.L    256
  44. Lvl3AutoVector    DC.L    256
  45. Lvl4AutoVector    DC.L    256
  46. Lvl5AutoVector    DC.L    256
  47. Lvl6AutoVector    DC.L    256
  48. Lvl7AutoVector    DC.L    256
  49. TRAPVector1        DC.L    256
  50. TRAPVector2        DC.L    256
  51. TRAPVector3        DC.L    256
  52. TRAPVector4        DC.L    256
  53. TRAPVector5        DC.L    256
  54. TRAPVector6        DC.L    256
  55. TRAPVector7        DC.L    256
  56. TRAPVector8        DC.L    256
  57. TRAPVector9        DC.L    256
  58. TRAPVector10    DC.L    256
  59. TRAPVector11    DC.L    256
  60. TRAPVector12    DC.L    256
  61. TRAPVector13    DC.L    256
  62. TRAPVector14    DC.L    256
  63. TRAPVector15    DC.L    256
  64.  
  65.         ENDMAIN
  66.         
  67. * Start of exception processing routines.  These
  68. * routines simply put a code on the stack and then
  69. * jump to the main exception processing routine which
  70. * handles the exception processing.  Note that an RTE
  71. * instruction is used to return, NOT RTS.
  72. *
  73. * Note that the vectors above all point to this routine.
  74. * In real life you would probably want each routine to
  75. * do something a little different.
  76.  
  77. ExProc    PROC EXPORT
  78.         ORG 256
  79.  
  80. * process exception code here
  81.  
  82. * and then return with RTE, not RTS
  83.         RTE
  84.         ENDPROC
  85.         
  86.         
  87.         END
  88.